package cn.com.api.service.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiT_user_admin;

/**
 * 
 */
@Service
public interface T_user_adminServiceBase {

	//根据id查看
	public ApiT_user_admin findT_user_adminById(Integer id);
	
    //查看数据集
	public List<ApiT_user_admin> findT_user_admins();
    
	//添加
 	public int insertT_user_admin(ApiT_user_admin t_user_admin);
  	
	//修改
    public int updateT_user_admin(ApiT_user_admin t_user_admin);
    
    //删除
    public int deleteT_user_admin(Integer id);
    
    // Foreign keys revelant		
		
	//删除根据City_id
    public int T_user_adminDeleteByCity_id(String city_id);
	
    //获取根据City_id
    public List<ApiT_user_admin> findT_user_adminsByCity_id(String city_id);

		
	//删除根据Role_id
    public int T_user_adminDeleteByRole_id(String role_id);
	
    //获取根据Role_id
    public List<ApiT_user_admin> findT_user_adminsByRole_id(String role_id);

		

	//region Indexs revelant
    
    
    //获取根据user_name	
    public List<ApiT_user_admin> findT_user_adminsByUser_name(String user_name);
    		
 
}


